UpdateResFile
short rfRefNum ; reference number for an open resource file
specified resource file to disk. Data is written only if one or more resources
are tagged as having been modified.
r fRefNum identifies the resource file to update. It is a value obtained from
refers to the system resource file.
Notes: All changed resource data (as tagged with the resChanged attribute set via
All changes to the resource map of the file are recorded, including changes necessary. The resChanged attribute of all resources written to disk is
reset. You might wish to call FlushVol to ensure that the information is really written out to disk.
Be aware that using DetachResource sets the resource's handle to NIL in the resource map. Similarly, any purged resource will be saved as an You may use CurResFile, early in your program, to obtain the r fRefNum of your application's resource file.
This function is called automatically when the file is closed via